import axios from '@/libs/api.request'
const PRE_URL = 'admin/${package.ModuleName}/'
export const page = (sys_type) => {
return axios.request({
url: PRE_URL+'page',
params: sys_type,
method: 'get'
})
}

export const list = (sys_type) => {
return axios.request({
url: PRE_URL+'list',
params: sys_type,
method: 'get'
})
}

export const load = (id) => {
return axios.request({
url:PRE_URL+ 'load',
params: {id},
method: 'get'
})
}

export const save = (data) => {
return axios.request({
url: PRE_URL+'save',
data,
method: 'post'
})
}

export const del = (data) => {
return axios.request({
url: PRE_URL+'del',
data,
method: 'post'
})
}

export const exportExcel = (data) => {
return axios.request({
url: PRE_URL+'export',
data,
method: 'post'
})
}

export default {
page,list,
load,
save,
del,
exportExcel
}
